ToonTalk

ToonTalk
[1]
Paradigm(s) concurrent constraint logic
Appeared in 1995
Designed by Ken Kahn
Developer Ken Kahn
Stable release 3.0 ({2009})
Major implementations ToonTalk IDE
Influenced by Janus computer programming language;Actor model
License Versions 1.0 and 2.0 had commercial licenses from several different publishers worldwide, but version 3.0 is now free.
Usual filename extensions .tt
Website ToonTalk IDE and language (Animated Programs)

ToonTalk is a computer programming system intended to be programmed by children. The "Toon" part stands for cartoon. The system's presentation is in the form of animated characters, including robots that can be trained by example. It is one of the few successful implementations outside academia of the concurrent constraint logic programming paradigm.

It was created by Kenneth M. Kahn in 1995,[1] and implemented as part of the ToonTalk IDE,[2] a software package distributed worldwide between 1996 and 2009. Since 2009, its specification is scholarly published[3] and its implementation is freely available.

Beyond its life as a commercial product, ToonTalk evolved via significant academic use in various research projects, notably at the London Knowledge Lab and the Institute of Education - projects Playground and WebLabs, which involved research partners from Cambrige (Logotron), Portugal (Cnotinfor and the University of Lisbon), Sweden (Royal Institute of Technology), Slovakia (Comenius University), Bulgaria (Sofia University), Cyprus (University of Cyprus), and Italy (Institute for Educational Technology of the Consiglio Nazionale delle Ricerche). It was also source of academic interest in Finland, where Mikael Kindborg proposed a static representation of ToonTalk programs [4] and in Portugal, where Leonel Morgado studied its potential to enable computer programming by preliterate children.[5]

ToonTalk was influenced by the Janus computer programming language and the Actor model. The main communication abstraction in ToonTalk is the bird/nest pair. When you (the programmer or a robot) give a thing to a bird, she flies to her nest and puts the thing in it, then returns. If one or more things already occupy the nest, the bird puts the new one underneath the others.

A ToonTalk program is a sequence of rules, where each rule has a head and a tail. The head is a pattern that can be matched against the argument, which must be a tuple. In ToonTalk's presentation, a rule appears as a robot, a program as a team of robots, and a tuple as a box that can have any number of holes or compartments in which things may be placed. The alphabet of things includes number pads, text pads, other boxes, robot teams, birds, nests, and things from some other categories. A process consists of a box with a team of robots working on it. If none of the patterns matches the box, the process suspends. Otherwise, the first rule that matches, fires. The end of the tail of the rule can either destroy the process, or continue it with the same team. In case the pattern calls for something other than an empty nest where an empty nest is present, the process suspends until some bird should place something on the nest (usually as a result of the actions of other processes). A nest with something on it matches the pattern as though the nest were not there, just the (top) something. The actions in the tail also manipulate the something rather than the whole nest. Consequently, a nest can be used to program a future.

ToonTalk can be given an imperative reading or a declarative reading. If we ignore certain constructs designed to facilitate I/O, we can see ToonTalk as not having any shared access to mutable memory. The bird/nest mechanism resembles the communication in the Actor model, but with the additional power to be able to pass nests around and for a process to hold more than one nest (which is also true in Janus). A difference between communication in the Actor model and in ToonTalk is that ToonTalk preserves the order of the messages; however, ToonTalk can also provide an indeterministic merge of message streams.

References

  1. ^ Kahn, Ken (22-25) "Metaphor Design - Case Study of An Animated Programming Environment" Computer Game Developers' Conference (CGDC) Proceedings, 1995, 9th Annual World Famous Computer Game Developers Conference Computer Game Developers Conference pp. 241 http://www.toontalk.com/Papers/cgdc.pdf 
  2. ^ Kahn, Ken (1996) "ToonTalk™—An Animated Programming Environment for Children" Journal of Visual Languages and Programming 7 (2): 197–217 ISSN 1045-926X http://www.toontalk.com/Papers/jvlc96.pdf 
  3. ^ Morgado, Leonel; Kahn, Ken (2008) "Towards a specification of the ToonTalk language" Journal of Visual Languages and Programming 19 (5): 574–597 doi:10.1016/j.jvlc.2007.10.002 ISSN 1045-926X http://www.toontalk.com/Papers/jvlc96.pdf 
  4. ^ Mikael, Kindborg (2001) "Representing ToonTalk programs as comic strips" Playground International Seminar Casa de Vilar, Porto, Portugal http://www.ida.liu.se/~mikki/comics/KindborgToonTalkPorto001123.doc 
  5. ^ Morgado, Leonel (2005). Framework for Computer Programming in Preschool and Kindergarten (doctoral thesis). Universidade de Trás-os-Montes e Alto Douro, Vila Real, Portugal. http://home.utad.pt/~leonelm/papers/tese/teseleonelmorgado.pdf. 

External links